package cn.ywang;

import cn.ywang.server.Server;
import cn.ywang.service.HelloImpl;
import cn.ywang.service.IHello;

/**
 * Hello world!
 */
public class ServerApp {
	public static void main(String[] args) {
		try {
			IHello hello = new HelloImpl();
			Server server = new Server();
			server.publisher(hello, 8888);
		} catch (Exception e) {
			e.printStackTrace();
		}
	}
}
